<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>LittleEndian (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="LittleEndian (POI API Documentation)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LittleEndian.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/poi/util/JvmBugs.html" title="class in org.apache.poi.util"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/poi/util/LittleEndian.html" target="_top">FRAMES</a></li>
<li><a href="LittleEndian.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li><a href="#nested_class_summary">NESTED</a>&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<p class="subTitle">org.apache.poi.util</p>
<h2 title="Class LittleEndian" class="title">Class LittleEndian</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.poi.util.LittleEndian</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../org/apache/poi/util/LittleEndianConsts.html" title="interface in org.apache.poi.util">LittleEndianConsts</a></dd>
</dl>
<hr>
<br>
<pre>public class <strong>LittleEndian</strong>
extends java.lang.Object
implements <a href="../../../../org/apache/poi/util/LittleEndianConsts.html" title="interface in org.apache.poi.util">LittleEndianConsts</a></pre>
<div class="block">a utility class for handling little-endian numbers, which the 80x86 world is
 replete with. The methods are all static, and input/output is from/to byte
 arrays, or from InputStreams.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Marc Johnson (mjohnson at apache dot org), Andrew Oliver (acoliver at apache dot org)</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></strong></code>
<div class="block">Exception to handle buffer underruns</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.poi.util.LittleEndianConsts">
<!--   -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.poi.util.<a href="../../../../org/apache/poi/util/LittleEndianConsts.html" title="interface in org.apache.poi.util">LittleEndianConsts</a></h3>
<code><a href="../../../../org/apache/poi/util/LittleEndianConsts.html#BYTE_SIZE">BYTE_SIZE</a>, <a href="../../../../org/apache/poi/util/LittleEndianConsts.html#DOUBLE_SIZE">DOUBLE_SIZE</a>, <a href="../../../../org/apache/poi/util/LittleEndianConsts.html#INT_SIZE">INT_SIZE</a>, <a href="../../../../org/apache/poi/util/LittleEndianConsts.html#LONG_SIZE">LONG_SIZE</a>, <a href="../../../../org/apache/poi/util/LittleEndianConsts.html#SHORT_SIZE">SHORT_SIZE</a></code></li>
</ul>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getByteArray(byte[], int, int)">getByteArray</a></strong>(byte[]&nbsp;data,
            int&nbsp;offset,
            int&nbsp;size)</code>
<div class="block">Copy a portion of a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getDouble(byte[])">getDouble</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get a double value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java double</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getDouble(byte[], int)">getDouble</a></strong>(byte[]&nbsp;data,
         int&nbsp;offset)</code>
<div class="block">get a double value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java double</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getFloat(byte[])">getFloat</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get a float value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java float</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getFloat(byte[], int)">getFloat</a></strong>(byte[]&nbsp;data,
        int&nbsp;offset)</code>
<div class="block">get a float value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java float</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getInt(byte[])">getInt</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get an int value from the beginning of a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getInt(byte[], int)">getInt</a></strong>(byte[]&nbsp;data,
      int&nbsp;offset)</code>
<div class="block">get an int value from a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getLong(byte[])">getLong</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get a long value from a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getLong(byte[], int)">getLong</a></strong>(byte[]&nbsp;data,
       int&nbsp;offset)</code>
<div class="block">get a long value from a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getShort(byte[])">getShort</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get a short value from the beginning of a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getShort(byte[], int)">getShort</a></strong>(byte[]&nbsp;data,
        int&nbsp;offset)</code>
<div class="block">get a short value from a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getShortArray(byte[], int, int)">getShortArray</a></strong>(byte[]&nbsp;data,
             int&nbsp;offset,
             int&nbsp;size)</code>
<div class="block">Read short array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUByte(byte[])">getUByte</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get the unsigned value of a byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUByte(byte[], int)">getUByte</a></strong>(byte[]&nbsp;data,
        int&nbsp;offset)</code>
<div class="block">get the unsigned value of a byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUInt(byte[])">getUInt</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get an unsigned int value from a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUInt(byte[], int)">getUInt</a></strong>(byte[]&nbsp;data,
       int&nbsp;offset)</code>
<div class="block">get an unsigned int value from a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUnsignedByte(byte[], int)">getUnsignedByte</a></strong>(byte[]&nbsp;data,
               int&nbsp;offset)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#getUByte(byte[], int)"><code>getUByte(byte[], int)</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUShort(byte[])">getUShort</a></strong>(byte[]&nbsp;data)</code>
<div class="block">get an unsigned short value from the beginning of a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#getUShort(byte[], int)">getUShort</a></strong>(byte[]&nbsp;data,
         int&nbsp;offset)</code>
<div class="block">get an unsigned short value from a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putByte(byte[], int, int)">putByte</a></strong>(byte[]&nbsp;data,
       int&nbsp;offset,
       int&nbsp;value)</code>
<div class="block">executes:
 <p/>
 <code>
 data[offset] = (byte)value;
 </code></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putDouble(byte[], int, double)">putDouble</a></strong>(byte[]&nbsp;data,
         int&nbsp;offset,
         double&nbsp;value)</code>
<div class="block">put a double value into a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putDouble(double, java.io.OutputStream)">putDouble</a></strong>(double&nbsp;value,
         java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">put a double value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putFloat(byte[], int, float)">putFloat</a></strong>(byte[]&nbsp;data,
        int&nbsp;offset,
        float&nbsp;value)</code>
<div class="block">put a float value into a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putFloat(float, java.io.OutputStream)">putFloat</a></strong>(float&nbsp;value,
        java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">put a float value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putInt(byte[], int)">putInt</a></strong>(byte[]&nbsp;data,
      int&nbsp;value)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#putInt(byte[], int, int)"><code>putInt(byte[], int, int)</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putInt(byte[], int, int)">putInt</a></strong>(byte[]&nbsp;data,
      int&nbsp;offset,
      int&nbsp;value)</code>
<div class="block">put an int value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putInt(int, java.io.OutputStream)">putInt</a></strong>(int&nbsp;value,
      java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">Put int into output stream</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putLong(byte[], int, long)">putLong</a></strong>(byte[]&nbsp;data,
       int&nbsp;offset,
       long&nbsp;value)</code>
<div class="block">put a long value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putLong(long, java.io.OutputStream)">putLong</a></strong>(long&nbsp;value,
       java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">Put long into output stream</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putShort(byte[], int, short)">putShort</a></strong>(byte[]&nbsp;data,
        int&nbsp;offset,
        short&nbsp;value)</code>
<div class="block">put a short value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putShort(byte[], short)">putShort</a></strong>(byte[]&nbsp;data,
        short&nbsp;value)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#putShort(byte[], int, short)"><code>putShort(byte[], int, short)</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putShort(java.io.OutputStream, short)">putShort</a></strong>(java.io.OutputStream&nbsp;outputStream,
        short&nbsp;value)</code>
<div class="block">Put signed short into output stream</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putShortArray(byte[], int, short[])">putShortArray</a></strong>(byte[]&nbsp;data,
             int&nbsp;startOffset,
             short[]&nbsp;value)</code>
<div class="block">Stores short array in buffer</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putUByte(byte[], int, short)">putUByte</a></strong>(byte[]&nbsp;data,
        int&nbsp;offset,
        short&nbsp;value)</code>
<div class="block">put an unsigned byte value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putUInt(byte[], int, long)">putUInt</a></strong>(byte[]&nbsp;data,
       int&nbsp;offset,
       long&nbsp;value)</code>
<div class="block">put an unsigned int value into a byte array</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putUInt(byte[], long)">putUInt</a></strong>(byte[]&nbsp;data,
       long&nbsp;value)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#putUInt(byte[], int, long)"><code>putUInt(byte[], int, long)</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putUInt(long, java.io.OutputStream)">putUInt</a></strong>(long&nbsp;value,
       java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">Put unsigned int into output stream</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putUShort(byte[], int, int)">putUShort</a></strong>(byte[]&nbsp;data,
         int&nbsp;offset,
         int&nbsp;value)</code>
<div class="block">put an unsigned short value into a byte array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#putUShort(int, java.io.OutputStream)">putUShort</a></strong>(int&nbsp;value,
         java.io.OutputStream&nbsp;outputStream)</code>
<div class="block">Put unsigned short into output stream</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#readInt(java.io.InputStream)">readInt</a></strong>(java.io.InputStream&nbsp;stream)</code>
<div class="block">get an int value from an InputStream</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#readLong(java.io.InputStream)">readLong</a></strong>(java.io.InputStream&nbsp;stream)</code>
<div class="block">get a long value from an InputStream</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#readShort(java.io.InputStream)">readShort</a></strong>(java.io.InputStream&nbsp;stream)</code>
<div class="block">get a short value from an InputStream</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#readUInt(java.io.InputStream)">readUInt</a></strong>(java.io.InputStream&nbsp;stream)</code>
<div class="block">get an unsigned int value from an InputStream</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#readUShort(java.io.InputStream)">readUShort</a></strong>(java.io.InputStream&nbsp;stream)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/poi/util/LittleEndian.html#ubyteToInt(byte)">ubyteToInt</a></strong>(byte&nbsp;b)</code>
<div class="block">Convert an 'unsigned' byte to an integer.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getByteArray(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;getByteArray(byte[]&nbsp;data,
                  int&nbsp;offset,
                  int&nbsp;size)</pre>
<div class="block">Copy a portion of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the original byte array</dd><dd><code>offset</code> - Where to start copying from.</dd><dd><code>size</code> - Number of bytes to copy.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The byteArray value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IndexOutOfBoundsException</code> - - if copying would cause access of data outside array bounds.</dd></dl>
</li>
</ul>
<a name="getDouble(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public static&nbsp;double&nbsp;getDouble(byte[]&nbsp;data)</pre>
<div class="block">get a double value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java double</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the double (64-bit) value</dd></dl>
</li>
</ul>
<a name="getDouble(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public static&nbsp;double&nbsp;getDouble(byte[]&nbsp;data,
               int&nbsp;offset)</pre>
<div class="block">get a double value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java double</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the double (64-bit) value</dd></dl>
</li>
</ul>
<a name="getFloat(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public static&nbsp;float&nbsp;getFloat(byte[]&nbsp;data)</pre>
<div class="block">get a float value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java float</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the double (64-bit) value</dd></dl>
</li>
</ul>
<a name="getFloat(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public static&nbsp;float&nbsp;getFloat(byte[]&nbsp;data,
             int&nbsp;offset)</pre>
<div class="block">get a float value from a byte array, reads it in little endian format
 then converts the resulting revolting IEEE 754 (curse them) floating
 point number to a happy java float</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the double (64-bit) value</dd></dl>
</li>
</ul>
<a name="getInt(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public static&nbsp;int&nbsp;getInt(byte[]&nbsp;data)</pre>
<div class="block">get an int value from the beginning of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the int (32-bit) value</dd></dl>
</li>
</ul>
<a name="getInt(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public static&nbsp;int&nbsp;getInt(byte[]&nbsp;data,
         int&nbsp;offset)</pre>
<div class="block">get an int value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the int (32-bit) value</dd></dl>
</li>
</ul>
<a name="getLong(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public static&nbsp;long&nbsp;getLong(byte[]&nbsp;data)</pre>
<div class="block">get a long value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the long (64-bit) value</dd></dl>
</li>
</ul>
<a name="getLong(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public static&nbsp;long&nbsp;getLong(byte[]&nbsp;data,
           int&nbsp;offset)</pre>
<div class="block">get a long value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the long (64-bit) value</dd></dl>
</li>
</ul>
<a name="getShort(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public static&nbsp;short&nbsp;getShort(byte[]&nbsp;data)</pre>
<div class="block">get a short value from the beginning of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the short (16-bit) value</dd></dl>
</li>
</ul>
<a name="getShort(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public static&nbsp;short&nbsp;getShort(byte[]&nbsp;data,
             int&nbsp;offset)</pre>
<div class="block">get a short value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the short (16-bit) value</dd></dl>
</li>
</ul>
<a name="getShortArray(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShortArray</h4>
<pre>public static&nbsp;short[]&nbsp;getShortArray(byte[]&nbsp;data,
                    int&nbsp;offset,
                    int&nbsp;size)</pre>
<div class="block">Read short array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the original byte array</dd><dd><code>offset</code> - Where to start copying from.</dd><dd><code>size</code> - Number of bytes to copy.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IndexOutOfBoundsException</code> - - if read would cause access of data outside array bounds.</dd></dl>
</li>
</ul>
<a name="getUByte(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUByte</h4>
<pre>public static&nbsp;short&nbsp;getUByte(byte[]&nbsp;data)</pre>
<div class="block">get the unsigned value of a byte.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned value of the byte as a 16 bit short</dd></dl>
</li>
</ul>
<a name="getUByte(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUByte</h4>
<pre>public static&nbsp;short&nbsp;getUByte(byte[]&nbsp;data,
             int&nbsp;offset)</pre>
<div class="block">get the unsigned value of a byte.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array.</dd><dd><code>offset</code> - a starting offset into the byte array.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned value of the byte as a 16 bit short</dd></dl>
</li>
</ul>
<a name="getUInt(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUInt</h4>
<pre>public static&nbsp;long&nbsp;getUInt(byte[]&nbsp;data)</pre>
<div class="block">get an unsigned int value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned int (32-bit) value in a long</dd></dl>
</li>
</ul>
<a name="getUInt(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUInt</h4>
<pre>public static&nbsp;long&nbsp;getUInt(byte[]&nbsp;data,
           int&nbsp;offset)</pre>
<div class="block">get an unsigned int value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned int (32-bit) value in a long</dd></dl>
</li>
</ul>
<a name="getUnsignedByte(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnsignedByte</h4>
<pre>@Deprecated
public static&nbsp;int&nbsp;getUnsignedByte(byte[]&nbsp;data,
                             int&nbsp;offset)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#getUByte(byte[], int)"><code>getUByte(byte[], int)</code></a> instead</i></div>
<div class="block">get the unsigned value of a byte.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array.</dd><dd><code>offset</code> - a starting offset into the byte array.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned value of the byte as a 32 bit integer</dd></dl>
</li>
</ul>
<a name="getUShort(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUShort</h4>
<pre>public static&nbsp;int&nbsp;getUShort(byte[]&nbsp;data)</pre>
<div class="block">get an unsigned short value from the beginning of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned short (16-bit) value in an int</dd></dl>
</li>
</ul>
<a name="getUShort(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUShort</h4>
<pre>public static&nbsp;int&nbsp;getUShort(byte[]&nbsp;data,
            int&nbsp;offset)</pre>
<div class="block">get an unsigned short value from a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned short (16-bit) value in an integer</dd></dl>
</li>
</ul>
<a name="putByte(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putByte</h4>
<pre>public static&nbsp;void&nbsp;putByte(byte[]&nbsp;data,
           int&nbsp;offset,
           int&nbsp;value)</pre>
<div class="block">executes:
 <p/>
 <code>
 data[offset] = (byte)value;
 </code>
 </p>
 Added for consistency with other put~() methods</div>
</li>
</ul>
<a name="putDouble(byte[], int, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putDouble</h4>
<pre>public static&nbsp;void&nbsp;putDouble(byte[]&nbsp;data,
             int&nbsp;offset,
             double&nbsp;value)</pre>
<div class="block">put a double value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the double (64-bit) value</dd></dl>
</li>
</ul>
<a name="putDouble(double, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putDouble</h4>
<pre>public static&nbsp;void&nbsp;putDouble(double&nbsp;value,
             java.io.OutputStream&nbsp;outputStream)
                      throws java.io.IOException</pre>
<div class="block">put a double value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the double (64-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="putFloat(byte[], int, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putFloat</h4>
<pre>public static&nbsp;void&nbsp;putFloat(byte[]&nbsp;data,
            int&nbsp;offset,
            float&nbsp;value)</pre>
<div class="block">put a float value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the float (32-bit) value</dd></dl>
</li>
</ul>
<a name="putFloat(float, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putFloat</h4>
<pre>public static&nbsp;void&nbsp;putFloat(float&nbsp;value,
            java.io.OutputStream&nbsp;outputStream)
                     throws java.io.IOException</pre>
<div class="block">put a float value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the float (32-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="putInt(byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>@Deprecated
public static&nbsp;void&nbsp;putInt(byte[]&nbsp;data,
                     int&nbsp;value)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#putInt(byte[], int, int)"><code>putInt(byte[], int, int)</code></a> instead</i></div>
<div class="block">put an int value into beginning of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>value</code> - the int (32-bit) value</dd></dl>
</li>
</ul>
<a name="putInt(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>public static&nbsp;void&nbsp;putInt(byte[]&nbsp;data,
          int&nbsp;offset,
          int&nbsp;value)</pre>
<div class="block">put an int value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the int (32-bit) value</dd></dl>
</li>
</ul>
<a name="putInt(int, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>public static&nbsp;void&nbsp;putInt(int&nbsp;value,
          java.io.OutputStream&nbsp;outputStream)
                   throws java.io.IOException</pre>
<div class="block">Put int into output stream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the int (32-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="putLong(byte[], int, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre>public static&nbsp;void&nbsp;putLong(byte[]&nbsp;data,
           int&nbsp;offset,
           long&nbsp;value)</pre>
<div class="block">put a long value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the long (64-bit) value</dd></dl>
</li>
</ul>
<a name="putLong(long, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre>public static&nbsp;void&nbsp;putLong(long&nbsp;value,
           java.io.OutputStream&nbsp;outputStream)
                    throws java.io.IOException</pre>
<div class="block">Put long into output stream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the long (64-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="putShort(byte[], int, short)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre>public static&nbsp;void&nbsp;putShort(byte[]&nbsp;data,
            int&nbsp;offset,
            short&nbsp;value)</pre>
<div class="block">put a short value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the short (16-bit) value</dd></dl>
</li>
</ul>
<a name="putShort(byte[], short)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre>@Deprecated
public static&nbsp;void&nbsp;putShort(byte[]&nbsp;data,
                       short&nbsp;value)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#putShort(byte[], int, short)"><code>putShort(byte[], int, short)</code></a> instead</i></div>
<div class="block">put a short value into beginning of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>value</code> - the short (16-bit) value</dd></dl>
</li>
</ul>
<a name="putShort(java.io.OutputStream, short)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre>public static&nbsp;void&nbsp;putShort(java.io.OutputStream&nbsp;outputStream,
            short&nbsp;value)
                     throws java.io.IOException</pre>
<div class="block">Put signed short into output stream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the short (16-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="putShortArray(byte[], int, short[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShortArray</h4>
<pre>public static&nbsp;void&nbsp;putShortArray(byte[]&nbsp;data,
                 int&nbsp;startOffset,
                 short[]&nbsp;value)</pre>
<div class="block">Stores short array in buffer</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>startOffset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the short (16-bit) values</dd></dl>
</li>
</ul>
<a name="putUByte(byte[], int, short)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putUByte</h4>
<pre>public static&nbsp;void&nbsp;putUByte(byte[]&nbsp;data,
            int&nbsp;offset,
            short&nbsp;value)</pre>
<div class="block">put an unsigned byte value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the short (16-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.ArrayIndexOutOfBoundsException</code> - may be thrown</dd></dl>
</li>
</ul>
<a name="putUInt(byte[], int, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putUInt</h4>
<pre>public static&nbsp;void&nbsp;putUInt(byte[]&nbsp;data,
           int&nbsp;offset,
           long&nbsp;value)</pre>
<div class="block">put an unsigned int value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the int (32-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.ArrayIndexOutOfBoundsException</code> - may be thrown</dd></dl>
</li>
</ul>
<a name="putUInt(byte[], long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putUInt</h4>
<pre>@Deprecated
public static&nbsp;void&nbsp;putUInt(byte[]&nbsp;data,
                      long&nbsp;value)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../org/apache/poi/util/LittleEndian.html#putUInt(byte[], int, long)"><code>putUInt(byte[], int, long)</code></a> instead</i></div>
<div class="block">put an unsigned int value into beginning of a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>value</code> - the int (32-bit) value</dd></dl>
</li>
</ul>
<a name="putUInt(long, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putUInt</h4>
<pre>public static&nbsp;void&nbsp;putUInt(long&nbsp;value,
           java.io.OutputStream&nbsp;outputStream)
                    throws java.io.IOException</pre>
<div class="block">Put unsigned int into output stream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the int (32-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="putUShort(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putUShort</h4>
<pre>public static&nbsp;void&nbsp;putUShort(byte[]&nbsp;data,
             int&nbsp;offset,
             int&nbsp;value)</pre>
<div class="block">put an unsigned short value into a byte array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array</dd><dd><code>offset</code> - a starting offset into the byte array</dd><dd><code>value</code> - the short (16-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.ArrayIndexOutOfBoundsException</code> - may be thrown</dd></dl>
</li>
</ul>
<a name="putUShort(int, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putUShort</h4>
<pre>public static&nbsp;void&nbsp;putUShort(int&nbsp;value,
             java.io.OutputStream&nbsp;outputStream)
                      throws java.io.IOException</pre>
<div class="block">Put unsigned short into output stream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the unsigned short (16-bit) value</dd><dd><code>outputStream</code> - output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if an I/O error occurs</dd></dl>
</li>
</ul>
<a name="readInt(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readInt</h4>
<pre>public static&nbsp;int&nbsp;readInt(java.io.InputStream&nbsp;stream)
                   throws java.io.IOException,
                          <a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></pre>
<div class="block">get an int value from an InputStream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - the InputStream from which the int is to be read</dd>
<dt><span class="strong">Returns:</span></dt><dd>the int (32-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - will be propagated back to the caller</dd>
<dd><code><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></code> - if the stream cannot provide enough bytes</dd></dl>
</li>
</ul>
<a name="readUInt(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readUInt</h4>
<pre>public static&nbsp;long&nbsp;readUInt(java.io.InputStream&nbsp;stream)
                     throws java.io.IOException,
                            <a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></pre>
<div class="block">get an unsigned int value from an InputStream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - the InputStream from which the int is to be read</dd>
<dt><span class="strong">Returns:</span></dt><dd>the unsigned int (32-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - will be propagated back to the caller</dd>
<dd><code><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></code> - if the stream cannot provide enough bytes</dd></dl>
</li>
</ul>
<a name="readLong(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readLong</h4>
<pre>public static&nbsp;long&nbsp;readLong(java.io.InputStream&nbsp;stream)
                     throws java.io.IOException,
                            <a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></pre>
<div class="block">get a long value from an InputStream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - the InputStream from which the long is to be read</dd>
<dt><span class="strong">Returns:</span></dt><dd>the long (64-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - will be propagated back to the caller</dd>
<dd><code><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></code> - if the stream cannot provide enough bytes</dd></dl>
</li>
</ul>
<a name="readShort(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readShort</h4>
<pre>public static&nbsp;short&nbsp;readShort(java.io.InputStream&nbsp;stream)
                       throws java.io.IOException,
                              <a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></pre>
<div class="block">get a short value from an InputStream</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>stream</code> - the InputStream from which the short is to be read</dd>
<dt><span class="strong">Returns:</span></dt><dd>the short (16-bit) value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - will be propagated back to the caller</dd>
<dd><code><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></code> - if the stream cannot provide enough bytes</dd></dl>
</li>
</ul>
<a name="readUShort(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readUShort</h4>
<pre>public static&nbsp;int&nbsp;readUShort(java.io.InputStream&nbsp;stream)
                      throws java.io.IOException,
                             <a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util">LittleEndian.BufferUnderrunException</a></code></dd></dl>
</li>
</ul>
<a name="ubyteToInt(byte)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ubyteToInt</h4>
<pre>public static&nbsp;int&nbsp;ubyteToInt(byte&nbsp;b)</pre>
<div class="block">Convert an 'unsigned' byte to an integer. ie, don't carry across the
 sign.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>b</code> - Description of the Parameter</dd>
<dt><span class="strong">Returns:</span></dt><dd>Description of the Return Value</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LittleEndian.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/poi/util/JvmBugs.html" title="class in org.apache.poi.util"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../org/apache/poi/util/LittleEndian.BufferUnderrunException.html" title="class in org.apache.poi.util"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/poi/util/LittleEndian.html" target="_top">FRAMES</a></li>
<li><a href="LittleEndian.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li><a href="#nested_class_summary">NESTED</a>&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
                <i>Copyright 2014 The Apache Software Foundation or
        its licensors, as applicable.</i>
            </small></p>
</body>
</html>
